<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>计算生日是星期几</title>
</head>
<body>
<script>
    var birthday = new Date('1985-10-18');
    document.write('your birthay day is ' + birthday.getDay());
</script>
</body>
</html>